home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
fido
/
GMS_1_1_85.lha
/
GMS
/
Rexx
/
GMS_callNode.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-04-19
|
1KB
|
53 lines
/*
* $VER: GMS_CallNode.rexx 1.1 (9.4.95)
*
*/
options results
signal on error
signal on syntax
parse arg gms_line gms_retries gms_delay gms_node
if( ~show( 'l', "gms_mailer_rexx.library" ) ) then
do
if( ~addlib( "gms_mailer_rexx.library", 0, -30, 0 ) )then
do
say "Could not open gms_mailer_rexx.library"
exit 10
end
end
if gms_node == '' then signal Usage
if gms_line == '' then gms_line = 0
if gms_retries == '' then gms_retries = -1
if gms_delay == '' then gms_delay = -1
call GMS_Mailer_System_Alloc('gms_mailer', gms_line, 'nonew')
call GMS_Mailer_Call_Node('gms_mailer', gms_node, gms_retries, gms_delay, 'async')
call GMS_Mailer_System_Free('gms_mailer')
call GMS_Mailer_FreeScriptData()
exit 0
Usage:
say 'Usage: rx GMS_CallNode[.rexx] <line num> <retries> <delay> <nodes> '
call GMS_Mailer_FreeScriptData()
exit 0
error:
syntax:
error_text = GMS_Mailer_LastError()
if error_text = '' then error_text = rc ErrorText( rc )
say '| ***BREAK: error at' sigl error_text
call GMS_Mailer_FreeScriptData()
exit rc